object practice4 {
  def main(args: Array[String]): Unit = {
    print("请输入您的姓名: ")
    val name = scala.io.StdIn.readLine()
    print("请输入您的年龄: ")
    val age = scala.io.StdIn.readLine().toInt
    print("请输入您的薪水: ")
    val salary = scala.io.StdIn.readLine().toDouble
    println(s"\n用户信息:\n姓名: $name\n年龄: $age\n薪水: $salary")
  }
}
